# include <iostream>
using namespace std;
int main (){
	int j;
	int k;
int square [9][9]; 
	for (j=0;j<9;j++){
		for(k=0;k<9;k++){
		/*if (k=4&&j!=4){
			square [j][k]=1;
			cout <<square [j][k];
		}*/
		if (j==k){
			square[j][k]=1;
			cout <<square[j][k];
		}
		if (j+k==8&&j!=k){
			square [j][k]=1;
			cout <<square[j][k];
		}
		if (j!=k&&j+k!=8){
			square[j][k]=0;
			cout <<square[j][k];
		}
	} 
	cout <<endl;
	}
	cout <<endl;
	system("pause");
	return 0;
}
